<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo C('SITE_INFO.name');?></title>
<script type="text/javascript" src="__PUBLIC__/scripts/jquery-1.7.2.min.js"></script>
<link href="__PUBLIC__/Catalog/css/common.css" rel="stylesheet" type="text/css" />

<link href="__PUBLIC__/Catalog/css/searchCity2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
   <div class="title">
         <div class="title1">
             <a href="<?php echo U('Products/index');?>" id="back"> < </a>选择城市
         </div>
   </div>
   <div class="position"><span class="positionText">定位城市:<span>
 	<?php if(is_array($nearby)): foreach($nearby as $key=>$vo): if($vo['code'] == $citycode): ?><a href="<?php echo U('Products/index');?>?citycode=<?php echo ($vo["code"]); ?>"><?php echo ($vo["name"]); ?></a><?php endif; endforeach; endif; ?>
   </span></span></div>
   <div
           class="hots1">
       <div class="hots_intro1">附近城市</div>
       <div class="hots_list1">
       <?php if(is_array($nearby)): foreach($nearby as $key=>$vo): if($vo['code'] != $citycode): ?><a href="<?php echo U('Products/index');?>?citycode=<?php echo ($vo["code"]); ?>"><?php echo ($vo["name"]); ?></a><?php endif; endforeach; endif; ?>  
       </div>
   </div>
    <div class="hots">
        <div class="hots_intro">热门城市</div>
        <div class="hots_list">
            <?php if(is_array($hotcity)): foreach($hotcity as $key=>$vo): ?><a href="<?php echo U('Products/index');?>?citycode=<?php echo ($vo["code"]); ?>">
	       		<?php if($vo['c_name'] == '市辖区' or $vo['c_name'] == '县' or $vo['c_name'] == '省直辖行政单位' or $vo['c_name'] == '市'): echo ($vo["p_name"]); ?>
	       		<?php else: echo ($vo["c_name"]); endif; ?></a><?php endforeach; endif; ?> 
           
        </div>
    </div>
    <div class="hots2">
        <div class="hots_intro2">按字母排序</div>
        <div class="hots_list2">
            <a href="<?php echo U('Products/index');?>?cbegin=A">A</a>
            <a href="<?php echo U('Products/index');?>?cbegin=B">B</a>
            <a href="<?php echo U('Products/index');?>?cbegin=C">C</a>
            <a href="<?php echo U('Products/index');?>?cbegin=D">D</a>
            <a href="<?php echo U('Products/index');?>?cbegin=E">E</a>
            <a href="<?php echo U('Products/index');?>?cbegin=F">F</a>
            <a href="<?php echo U('Products/index');?>?cbegin=G">G</a>
            <a href="<?php echo U('Products/index');?>?cbegin=H">H</a>
            <a href="<?php echo U('Products/index');?>?cbegin=J">J</a>
            <a href="<?php echo U('Products/index');?>?cbegin=K">K</a>
            <a href="<?php echo U('Products/index');?>?cbegin=L">L</a>
            <a href="<?php echo U('Products/index');?>?cbegin=M">M</a>
            <a href="<?php echo U('Products/index');?>?cbegin=N">N</a>
            <a href="<?php echo U('Products/index');?>?cbegin=P">P</a>
            <a href="<?php echo U('Products/index');?>?cbegin=Q">Q</a>
            <a href="<?php echo U('Products/index');?>?cbegin=R">R</a>
            <a href="<?php echo U('Products/index');?>?cbegin=S">S</a>
            <a href="<?php echo U('Products/index');?>?cbegin=U">U</a>
            <a href="<?php echo U('Products/index');?>?cbegin=V">V</a>
            <a href="<?php echo U('Products/index');?>?cbegin=W">W</a>
            <a href="<?php echo U('Products/index');?>?cbegin=X">X</a>
            <a href="<?php echo U('Products/index');?>?cbegin=Y">Y</a>
            <a href="<?php echo U('Products/index');?>?cbegin=Z">Z</a>
        </div>
    </div>
</div>
<div class="index-foot">
    <div class="index-foot2">
            <ul>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Index/index');?>"><img src="__PUBLIC__/Catalog/images/house.png" /></a></dd>
                      <dd><a href="<?php echo U('Index/index');?>">首页</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Products/index');?>"><img src="__PUBLIC__/Catalog/images/cate1.png" /></a></dd>
                      <dd><a href="<?php echo U('Products/index');?>">商品</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd><a href="<?php echo U('Mproducts/publish');?>"><img src="__PUBLIC__/Catalog/images/jia.png"style=" width:50px; height:50px;" /></a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/leaveword');?>"><img src="__PUBLIC__/Catalog/images/<?php if($count > 0): ?>message-hot.png<?php else: ?>message.png<?php endif; ?>" /></a></dd>
                      <dd><a href="<?php echo U('Membership/leaveword');?>">信息</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>"><img src="__PUBLIC__/Catalog/images/men.png" /></a></dd>
                      <dd><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>">我的</a></dd>
                  </dl>
              </li>
            </ul>       
    </div>
</div>
</body>
</html>